import request from '@/utils/request'

// export function login(data) {
// return request({
//   url: '/api/sys/login',
//   method:'post',
//   data
// })
// }
// 登录接口
export const login = data => request.post('/sys/login', data)

export function getUserInfoProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
// 获取员工个人详情
export function getUserByDetail(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
